package com.design.cjm.structural.proxy.example;

/**
 * 追求者类
 *
 * @Author: Jie Ming Chen
 * @Date: 2018/9/20
 * @Version 1.0
 */
public class Pursuer implements GiveGife{

    private Girl girl;

    public Pursuer(Girl girl) {
        this.girl = girl;
    }

    @Override
    public void giveDoll() {

        System.out.println(this.girl.name + "送娃娃");
    }

    @Override
    public void giveFlower() {

        System.out.println(this.girl.name + "送花");
    }

    @Override
    public void giveChocolate() {

        System.out.println(this.girl.name + "送巧克力");
    }
}
